home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global selectedLetter
- repeat with i = 1 to 17
- put char i of "Pldkmqhrv,ezthia." into field i
- end repeat
- set HC to the number of cast "handCursor"
- cursor([HC, HC + 1])
- set selectedLetter to "a"
- end
-
- on wait ticks
- set temp to the timer
- repeat while (the timer - temp) < ticks
- end repeat
- end
-
- on switchLetters
- global selectedLetter
- if the castNum of sprite the clickOn = 1 then
- put numToChar(charToNum(selectedLetter) - 32) into field 1
- else
- put selectedLetter into field the castNum of sprite the clickOn
- end if
- puppetSound("nice pling.s")
- updateStage()
- checkSentence()
- end
-
- on checkSentence
- set allGood to 1
- repeat with i = 1 to 17
- if field i <> char i of "youarecls,pnthid." then
- set allGood to 0
- end if
- end repeat
- if allGood then
- puppetSound("Something.S")
- updateStage()
- play done
- end if
- end
-